package base.Chapter00_Structures.C03_LinkList;

/**
 * 作用: 带泛型的单向链表
 *
 * @param <T> 数据内容
 */
public class SingleLinkedListNode<T> {
    private T data;
    private SingleLinkedListNode nextNode;

    public SingleLinkedListNode() {
    }

    public SingleLinkedListNode(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public SingleLinkedListNode getNextNode() {
        return nextNode;
    }

    public void setNextNode(SingleLinkedListNode nextNode) {
        this.nextNode = nextNode;
    }
}
